package com.exce;

/**
 * @Author WaveHi
 * @Date 3/8/2021 上午 10:41
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description 演示this关键字的用法
 */
public class Student3 {

    private String name;//姓名
    private int age;//年龄

    public Student3() {

    }

    public Student3(String name,int age) {

        this.name = name;
        this.age = age;

    }

    public void setName(String name) {

        this.name = name;

    }

    public String getName() {

        return name;

    }

    public void setAge(int age) {

        this.age = age;

    }

    public int getAge() {

        return age;

    }

    public String toString() {

        return "[" + "name = " + name + ",age = " + age + "]";

    }

}
